<?php namespace App\Admin\Goods\Goods;

use App\Core\Model as BaseModel;

class Model extends BaseModel {

    protected $table = 'goods';
    protected $primaryKey = 'id';

    public function brand(){
        return $this->belongsTo('App\Admin\Goods\Brand\Model', 'brand_id', 'id');
    }

    public function supplier(){
        return $this->belongsTo('App\Admin\Supplier\Supplier\Model','supplier_id','id');
    }

}